package com.ruoyi.energy.mapper;

import com.ruoyi.energy.domain.DeviceMaintain;

import java.util.List;

/**
 * 设备维护Mapper接口
 * 
 * @author cjie
 * @date 2022-01-04
 */
public interface DeviceMaintainMapper {
    /**
     * 查询设备维护
     * 
     * @param id 设备维护ID
     * @return 设备维护
     */
     DeviceMaintain selectDeviceMaintainById(String id);

    /**
     * 查询设备维护列表
     * 
     * @param deviceMaintain 设备维护
     * @return 设备维护集合
     */
     List<DeviceMaintain> selectDeviceMaintainList(DeviceMaintain deviceMaintain);

    /**
     * 新增设备维护
     * 
     * @param deviceMaintain 设备维护
     * @return 结果
     */
     int insertDeviceMaintain(DeviceMaintain deviceMaintain);

    /**
     * 修改设备维护
     * 
     * @param deviceMaintain 设备维护
     * @return 结果
     */
     int updateDeviceMaintain(DeviceMaintain deviceMaintain);

    /**
     * 删除设备维护
     * 
     * @param id 设备维护ID
     * @return 结果
     */
     int deleteDeviceMaintainById(String id);

    /**
     * 批量删除设备维护
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
     int deleteDeviceMaintainByIds(String[] ids);

    List<DeviceMaintain> selectDeviceMaintainListWithElevator(DeviceMaintain deviceMaintain);

    List<String> selectRepairByMonth(String month);
}
